<link rel="stylesheet" href="Templates/emx_nav_left.css" type="text/css" />

<script type="text/javascript">
<!--
var time = 3000;
var numofitems = 2;

//menu constructor
function menu(allitems,thisitem,startstate){ 
  callname= "gl"+thisitem;
  divname="subglobal"+thisitem;  
  this.numberofmenuitems = allitems;
  this.caller = document.getElementById(callname);
  this.thediv = document.getElementById(divname);
  this.thediv.style.visibility = startstate;
}

//menu methods
function ehandler(event,theobj){

//alert(theobj.numberofmenuitems);
  for (var i=1; i<= theobj.numberofmenuitems; i++){
    var shutdiv =eval( "menuitem"+i+".thediv");
    shutdiv.style.visibility="hidden";
  }
  theobj.thediv.style.visibility="visible";
}
				
function closesubnav(event){
  if ((event.clientY <48)||(event.clientY > 107)){
    for (var i=1; i<= numofitems; i++){
      var shutdiv =eval('menuitem'+i+'.thediv');
      shutdiv.style.visibility='hidden';
    }
  }
}
// -->
</script>
<!-- </head> -->
<!-- <body onmousemove="closesubnav(event);"> -->
<div id="masthead">
  <h1 id="siteName">Quick Rx Online - Daily Logs</h1>
<div id="globalNav"> <img alt="" src="Templates/gblnav_left.gif" height="32" width="4" id="gnl" /> <img alt="" src="Templates/glbnav_right.gif" height="32" width="4" id="gnr" />
    <div id="globalLink"> 
<a href="#" id="gl2" class="glink" onMouseOver="ehandler(event,menuitem2);">Access</a>	
<a href="#" id="gl1" class="glink" onMouseOver="ehandler(event,menuitem1);">Main Menu</a>
<a href="#" id="gl3" class="glink" onMouseOver="ehandler(event,menuitem3);">Reports</a></div>
    <!--end globalLinks-->
 <div id="search"><div id="dt_update2"></div><?php print "WELCOME : ".strtoupper(@$_SESSION["USER_ID"])."(".strtoupper($_SESSION["LOCATION_NAME"])." | ".strtoupper($_SESSION["USER_GROUP"]).")"; ?> | <a href="logout.php">Logout</a></div>

  </div>
  
  <!-- end globalNav -->
  <div id="subglobal1" class="subglobalNav">
  <?php if ($_SESSION["USER_GROUP"] == 'admin'){ ?>
   <a href="ActivityLog3.php">Entry Log (NEW)</a> &raquo; <a href="tb_locationslist.php" >Locations</a> &raquo; <a href="tb_lookupslist.php">Lookups</a> &raquo; <a href="tb_registerlist.php">Registers</a> &raquo; <a href="tb_userslist.php">User List</a>  &raquo; <a href="tb_controlviewlist.php">Control View</a>
   <?php } else { ?>
<a href="ActivityLog2.php">Add New Entry Log</a>
   <?php }?>   
   </div>
<div id="subglobal2" class="subglobalNav"> <a href="login.php">Log In</a> &raquo; <a href="logout.php">Log Out</a></div>
<div id="subglobal3" class="subglobalNav"> 
  <?php if ($_SESSION["USER_GROUP"] == 'admin'){ ?>
<a href="view_register_masterlist.php">View Register Master</a> &raquo; <a href="view_reg_master_netsaleslist.php">View Register Master(NEW)</a> &raquo; <a href="history_list.php">View History</a>
   <?php } else { ?>
<p class="nomenu"><< No Menu Options available >></p>
   <?php }?>   

</div>
</div>
<script type="text/javascript">
    <!--
    var menuitem1 = new menu(3,1,"hidden");
	var menuitem2 = new menu(3,2,"hidden");
	var menuitem3 = new menu(3,3,"hidden");
    // -->
    </script>
